/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pt.isel.beans;

import java.io.Serializable;
import java.util.List;
import javax.faces.bean.ApplicationScoped;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import pt.isel.medknow.tables.Visit;
import pt.isel.medknow.tables.api.HibMethods;

/**
 *
 * @author fallen
 */
@ManagedBean(name = "hib")
@ViewScoped
public class HibernateBean implements Serializable {

    private List<Visit> visits = new HibMethods().listVisit();

    //<editor-fold defaultstate="collapsed" desc="IDE generated stuff">
    public List<Visit> getVisits() {
        return visits;
    }

    public void setVisits(List<Visit> visits) {
        this.visits = visits;
    }
    //</editor-fold>
}
